package com.ynkbny.lgapi;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.*;
import org.springframework.stereotype.Service;

@Service
public interface HistoryData {
    String URL = "https://export.bknykf.com";
    @Get(url = "https://export.bknykf.com/bus/query/device/history?devId=${deviceId}&start=${startTime}&end=${endTIme}&downSample=30m-first&metric=${metric}", headers = {"Cookie: ssid=${token}"})
    JSONObject getDataForLaoGou( @Var("token") String token,@Var("deviceId")String deviceId,@Var("startTime")String startTime,@Var("endTIme")String endTIme,@Var("metric")String metric);
}
